package com.cx.zyx.modulebiz.news.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cx.zyx.modulebiz.news.model.News;
import com.cx.zyx.modulebiz.news.service.dto.TopNewsDTO;

import java.util.List;

/**
 * @author zjg
 *  针对表【news】的数据库操作Service
 * @since 2025-07-14 14:50:23
 */
public interface NewsService extends IService<News> {
    void sendNormalMessage(String topic, String tag, News content);
    void sendNormalMessage(String topic, String tag, News content,boolean async);
    void sendDelayMessage(String topic, String tag, News content, long delay);
    News getOneNewsWith(Long id);
    News getNewsByIdNewsWith(Long aLong);
    List<TopNewsDTO> getTopNews(int topN);
}
